home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 46
/
Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso
/
-in_the_mag-
/
reader_requests
/
scilab
/
tests
/
intg.dia.ref
< prev
next >
Wrap
Text File
|
1999-09-16
|
335b
|
26 lines
// intg test
deff('[y]=f(x)','y=x*sin(30*x)/sqrt(1-((x/(2*%pi))^2))')
exact=-2.5432596188;
x=abs(exact-intg(0,2*%pi,f));
if x>1.e-8 then bugmes();quit;end;
//
comp(f);
x=abs(exact-intg(0,2*%pi,f));
if x>1.e-6 then bugmes();quit;end;
//
x=abs(exact-intg(0,2*%pi,'toto'));
if x>1.e-6 then bugmes();quit;end;